package cn.zwx.security.example.config;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: jwt 配置
 * @projectName:spring-boot-security-example
 * @see:cn.zwx.security.example.config
 * @author:zhangwenxue
 * @createTime:2021/6/23 15:51
 * @version:1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JWTConfig {

    /**
     * 密钥KEY
     */
    public  String secret;
    /**
     * TokenKey
     */
    public  String tokenHeader;
    /**
     * Token前缀字符
     */
    public  String tokenPrefix;
    /**
     * 过期时间
     */
    public  Integer expiration;
    /**
     * 不需要认证的接口
     */
    public  String antMatchers;

}
